package com.lei.sqlJsp.entity;

import java.util.List;

public class Page<T> {
	/**
	 * 有多少条数据
	 */
	private Integer count;
	/**
	 * 一共有多少页
	 */
	private Integer totalPage;
	/**
	 * 当前页
	 */
	private Integer currentPage;
	
	/**
	 * 数据
	 */
	private List<T> data;

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Integer getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(Integer totalPage) {
		this.totalPage = totalPage;
	}

	public Integer getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(Integer currentPage) {
		this.currentPage = currentPage;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	public Page(Integer count, Integer totalPage, Integer currentPage, List<T> data) {
		super();
		this.count = count;
		this.totalPage = totalPage;
		this.currentPage = currentPage;
		this.data = data;
	}

	public Page() {
		super();
	}
	
}
